package com.lance.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lancecong
 * @version 1.0
 * @ClassName
 * @DESCRIPTION TODO
 * @create2019-05-07
 **/
@RefreshScope
@RestController
@RequestMapping("/conf")
public class RefreshController {


    @Value("${appName}")
    private String appName;

    @GetMapping("/get")
    public String getConf() {
        return appName;
    }
}
